<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>部门管理</title>
  <!--分页样式-->
  <link rel="stylesheet" type="text/css" href="../../frame/css/page.css">
  <link rel="stylesheet" type="text/css" href="../../frame/fonts/iconfont.css">
  <link rel="stylesheet" type="text/css" href="../../frame/layui/css/layui.css">
  <link rel="stylesheet" href="../../frame/layer-v2.0/skin/layer.css">
  <link rel="stylesheet" type="text/css" href="../../frame/css/common.css">
  <link rel="stylesheet" type="text/css" href="../../frame/css/ThemeManager.css">
  <link href="../../frame/angular/ui/animate/nga.all.min.css" rel="stylesheet" type="text/css"/>
  <link href="../../frame/angular/css/common.css" rel="stylesheet" type="text/css"/>
  <script src="../../javascript/jquery-1.9.1.min.js"></script>
  <script src="../../frame/layer-v2.0/layer.js"></script>
  <script src="../../frame/angular/base/angular.js" type="text/javascript"></script>
  <script type="text/javascript"
          src="../../frame/angular/ui/tm.pagination/tm.pagination.js"></script>
  <script src="../../js/angPro/dep.js"></script>
</head>
<body ng-app="depApp" ng-controller="depCtrl">
<div class="layui-layout layui-layout-admin" id="main">
  <!--top-->
  <div class="top">
  </div>
  <!--left-->
  <div class="left">
  </div>
  <div class="layui-body clearfix">
    <!-- 内容主体区域 -->
    <div class="common_box">
      <div class="content_table content_table3">
        <!--主题搜索-->
        <div class="common_box">
          <div class="common_box_title clearfix">
            <p class="common_title_name">管理员搜索</p>
          </div>
          <div class="common_box_con">
            <div class="search_box" id="search_box">
              <ul class="clearfix">
                <li class="clearfix">
                  <p class="search_name">管理员账号:</p>
                  <input type="text" ng-model="params.loginName" class="text text_red" placeholder="">
                </li>
                <li class="clearfix">
                  <p class="search_name">管理员名称:</p>
                  <input type="text"  ng-model="params.name" class="text text_red" placeholder="">
                </li>

                <li class="clearfix">
                  <p class="search_name">角色:</p>
                  <select name="" id="" class="text_red" ng-model="params.roleId" ng-options="s.roleId as s.roleName for s in sysRoleList">
                    <option value="">全部</option>
                  </select>
                </li>
                <li class="clearfix" style="width: 16%;">
                  <a href="" class="btn_default_m" ng-click="search()">查询</a>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="common_box">
      <div class="content_table2">
        <div class="common_box_title clearfix">
          <p class="common_title_name">部门列表</p>
          <ul class="clearfix operation">
            <li><a class="btn_default_xz pop_prompt_btn16" ng-click="edit()">新增</a></li>
            <li><a class="btn_default_m" ng-click="batchDel()">批量删除</a></li>
          </ul>
        </div>
        <div class="common_box_con">
          <div class="table">
            <table width="100%">
              <thead>
              <tr>
                <td class="table_number"><input id="checkAllId" type="checkbox"
                                                ng-checked="isCheckContentAll" ng-model="isCheckContentAll"
                                                class="chk_1"></td>
                <td>序号</td>
                <td>部门名称</td>
                <td>部门编号</td>
                <td>状态</td>
                <td>添加时间</td>
                <td class="table_operation">操作</td>
              </tr>
              </thead>
              <tbody>
              <tr ng-repeat="d in page.content">
                <td class="table_number"><input im_id="{{d.id}}" ng-checked="false" ng-click="checkContent()" type="checkbox"></td>
                <td ng-bind="$index+1"></td>
                <td ng-bind="d.name"></td>
                <td ng-bind="d.code"></td>
                <td ng-bind="d.useMark===1 ? '启用' : '禁用'"></td>
                <td ng-bind="d.addDateTime|date:'yyyy-MM-dd hh:mm:ss'"></td>
                <td class="table_operation">
                  <a  class="iconfont icon-bianji" ng-click="edit(d.id)" title="编辑"></a>
                  <a class="iconfont icon-shanchu" title="删除" ng-click="delete(d.id)"></a>
                  <a ng-class="d.useMark===1?'iconfont icon-guanzhu':'iconfont icon-duigou'"  title="{{d.useMark===1?'禁用':'启用'}}" ng-click="changeStatus(d.id,d.useMark)"></a>
                </td>
              </tr>
              </tbody>
            </table>
          </div>
        </div>
        <!--jump-->
        <tm-pagination conf="page"></tm-pagination>
      </div>
    </div>
  </div>
</div>
<!--footer-->
<!--<div class="bottom">

</div>-->
<!--弹出层-->
<div class="pop  pop_prompt3 dep" style="display: none">
  <table class="pop_table" width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td class="pop_td">
        <div class="pop_box layer_v">
          <a class="pop_close iconfont icon-guanbi"></a>
          <div class="pop_title" ng-bind="headName"></div>
          <div class="pop_con">
            <div class="table_from">
              <table width="100%">
                <tr>
                  <td class="table_from_left">部门名称：</td>
                  <td class="table_from_right">
                    <div class="condition_con ">
                      <span>*</span>
                        <input type="text" ng-model="name" class="text text_red"/>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td class="table_from_left">部门编码：</td>
                  <td class="table_from_right">
                    <div class="condition_con condition_prompt_green">
                      <span>*</span>
                      <input type="text " ng-model="code" class="text text_red">
                    </div>
                  </td>
                </tr>
                <tr>
                  <td class="table_from_left">状态：</td>
                  <td class="table_from_right">
                    <div class="condition_con ">
                      <span>*</span>
                      启用:<input type="radio" ng-model="useMark" name="status" value="1"/>
                      禁用:<input type="radio" ng-model="useMark" name="status" value="0"/>
                    </div>
                  </td>
                </tr>
              </table>
            </div>
          </div>
          <span style="padding-left: 30px;color: red" ng-bind="errMsg"></span>
          <div class="pop_btn">
            <table cellpadding="0" cellspacing="0" border="0">
              <tr>
                <td><a class="btn_default_m pop_prompt_btn4" ng-click="submit()">确定</a></td>
                <td><a class="btn_border_m">取消</a></td>
              </tr>
            </table>
          </div>
        </div>
      </td>
    </tr>
  </table>
</div>
</body>
<script>
  $(".top").load("../common/top.html");
  $(".left").load("../common/left.html");
  // $(".bottom").load("bottom.html");
</script>
</html>
